package com.zhou.cloud.dao.mapper;

import com.zhou.cloud.dao.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @descrition: ${descrition}
 * @author: zhouyongjun
 * @date: 2022/11/22
 **/
public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll();

    List<Product> selectCanSoldList();

    List<Product> selectSoldOutList();

    int updateNumById(@Param("id") Long id, @Param("num") int num);
}